<%@ page language="java" pageEncoding="UTF-8" %>
<% 
    String context = request.getContextPath();
    request.setAttribute("context",context);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户</title>
    <script src="${context}/static/jquery-easyui-1.3.2/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/json2.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/common.js" type="text/javascript"></script>
    <link href="${context}/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="${context}/static/bootstrap/js/bootstrap.js" type="text/javascript"></script>    
    <style type="text/css">  	
    </style>
    
    <script type="text/javascript">
        $(document).ready(function () {
            var parmeter = (window.frameElement && window.frameElement.dialogArgs) ? window.frameElement.dialogArgs : {};
            if(!parmeter) return;
            $("#type").val(parmeter.type);
            $("#title").val(parmeter.title);
            $("#content").val(parmeter.content);
            $("#worker").val(parmeter.worker);
            $("#remark").val(parmeter.remark);
            $("#id").val(parmeter.id);
			var id="input[name='status'][value='"+parmeter.status+"']";				
			$(id).attr("checked",true); 
        });


		function getFormObj() {
            $("#type").val();
            $("#title").val();
            $("#content").val();
            $("#worker").val();
            $("#remark").val();
            $("#id").val();
			var id="input[name='status'][value='"+parmeter.status+"']";				
			$(id).attr("checked",true); 
		}
    	  
    </script>
</head>
<body>

<form id="form" class="form-horizontal">
	</br>
 <input  id="id" name="id" style="display:none">

  <div class="control-group" style="display:none">
    <label class="control-label" for="type">类型</label>
    <div class="controls">
		<select id="type" name="type" class="span2">
		  <option value="1">工作计划</option>
		  <option value="2">学习计划</option>
		  <option value="3">BUG</option>
		  <option value="4">知识点</option>
		</select>
    </div>
  </div>    
  <div class="control-group">
    <label class="control-label" for="title">标题</label>
    <div class="controls">
      <input type="input-block-level" id="title" name="title" class="span10" placeholder="">
    </div>
  </div>
     
  
  <div class="control-group">
    <label class="control-label" for="content">内容</label>
    <div class="controls">
		<textarea id="content" rows="12" name="content" class="span10"></textarea>
    </div>
  </div> 
  
  
  <div class="control-group">
    <label class="control-label" for="worker">负责人</label>
    <div class="controls">
      <input type="input-block-level" id="worker" name="worker" class="span5" placeholder="" value="段凯歌">
    </div>
  </div>
  
  
  <div class="control-group ">
    <label class="control-label" for="status">状态</label>
    <div class="controls">
	<label class="radio inline" style="width:40px">
		<input type="radio" name="status" id="optionsRadios1" value="1" checked>完成
	</label>
	<label class="radio inline" style="width:60px">
		<input type="radio" name="status" id="optionsRadios2" value="2">未完成
	</label>
	<label class="radio inline" style="width:40px">
		<input type="radio" name="status" id="optionsRadios3" value="3">废弃
	</label>	
    </div>
  </div>  
  
  <div class="control-group">
    <label class="control-label" for="remark">描述</label>
    <div class="controls">
		<textarea id="remark" rows="4" name="remark" class="span10"></textarea>
    </div>
  </div>  
</form>    
</body>
</html>
